
package vip.xiaonuo.biz.modular.lancerUsercoupon.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import vip.xiaonuo.common.pojo.CommonEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * C端优惠券实体
 *
 * @author Lancer
 * @date  2024/03/15 11:48
 **/
@Getter
@Setter
@TableName("biz_user_coupon")
@Accessors(chain = true)
public class BizUserCoupon {

    /** ID */
    @TableId
    @ApiModelProperty(value = "ID", position = 1)
    private String id;

    /** 用户名 */
    @ApiModelProperty(value = "用户名", position = 2)
    private String userName;

    /** 用户id */
    @ApiModelProperty(value = "用户id", position = 3)
    private String userId;

    /** 优惠券id */
    @ApiModelProperty(value = "优惠券id", position = 4)
    private String couponId;

    /** 删除标识 */
    @ApiModelProperty(value = "删除标识", position = 5)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String deleteFlag;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 6)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间", position = 7)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 创建人 */
    @ApiModelProperty(value = "创建人", position = 8)
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /** 更新人 */
    @ApiModelProperty(value = "更新人", position = 9)
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;


    /** 品牌名称 */
    @ApiModelProperty(value = "品牌名称", position = 3)
    @TableField(exist = false)
    private String brandName;
    /** 商品盒子名称 */
    @ApiModelProperty(value = "商品盒子名称", position = 6)
    @TableField(exist = false)

    private String goodsBoxName;

    /** 满多少才可以使用 */
    @ApiModelProperty(value = "满多少才可以使用", position = 7)
    @TableField(exist = false)

    private Integer fullMoney;

    /** 减少多少 */
    @ApiModelProperty(value = "减少多少", position = 8)
    @TableField(exist = false)

    private Integer reductionMoney;

    /** 生效时间 */
    @ApiModelProperty(value = "生效时间", position = 9)
    @TableField(exist = false)

    private Date useStartTime;

    /** 失效时间 */
    @ApiModelProperty(value = "失效时间", position = 10)
    @TableField(exist = false)

    private Date useEndTime;
}
